import VueRouter from "vue-router";
import Home from "@/pages/Home/Home";
import About from "@/pages/About";
import News from "@/pages/Home/News";
import Message from "@/pages/Home/Message/Message";
import Detail from "@/pages/Home/Message/Detail";

export default new VueRouter({
    routes: [
        {
            name:'Home',
            path: '/Home',
            component: Home,
            children:[
                {
                    name:'News',
                    path:'News',
                    component:News
                },
                {
                    name:'Message',
                    path:'Message',
                    component:Message,
                    children:[
                        {
                            name:'Detail',
                            path:'Detail',
                            component:Detail
                        },
                    ]
                },
            ]
        },
        {
            name:'About',
            path: '/About',
            component: About
        },
    ]
})